QT += testlib
QT += gui
CONFIG += qt warn_on depend_includepath testcase

TEMPLATE = app

SOURCES +=  tst_encodetest.cpp \
    JP2_Decoder.cpp \
    JP2_U16C1Encoder.cpp


win32{

CUDA_DIR = "C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.6"
INCLUDEPATH  += $$CUDA_DIR/include
LIBS += $$CUDA_DIR/lib/x64/cudart.lib

nvJPEG_DIR = "D:/nvJPEG2000/libnvjpeg-0.5.0.25"
INCLUDEPATH  += $$nvJPEG_DIR/include
LIBS += $$nvJPEG_DIR/lib/nvjpeg2k.lib

OPENCV_DIR = 'D:/Opencv/opencv_455/build' #build
CV_VER = 455
CV_CCXVER = vc15 #vc14

INCLUDEPATH += $${OPENCV_DIR}/include/opencv
INCLUDEPATH += $${OPENCV_DIR}/include/opencv2
INCLUDEPATH += $${OPENCV_DIR}/include/

OPENCV_LIB_DIR = $${OPENCV_DIR}/x64/$${CV_CCXVER}/lib

CONFIG(debug, debug|release){
LIBS += $${OPENCV_LIB_DIR}/opencv_world$${CV_VER}d.lib
}else:CONFIG(release, debug|release){
LIBS += $${OPENCV_LIB_DIR}/opencv_world$${CV_VER}.lib
}

}

HEADERS += \
    CodecNvJPEG2000.h
